package com.zerogis.zpubuidzmb.fragment;

import android.view.View;
import android.view.ViewGroup;

import com.example.mylibrary.Factory;
import com.example.mylibrary.TestDzmbInterface;
import com.example.zpub_query.R;
import com.zerogis.zpubuibas.fragment.base.BaseFragment;

/**
 * 类描述：端子面板fragment例子
 * 作者：郑朝军 on 2018/8/16
 * 邮箱：1250393285@qq.com
 * 公司：武汉智博创享科技有限公司
 * 修改人：郑朝军 on 2018/8/16
 * 修改备注：
 */
public class QueryFragmentSimpleDzmb extends BaseFragment
{
    private static QueryFragmentSimpleDzmb m_Instance;

    public static QueryFragmentSimpleDzmb getInstance()
    {
        if (m_Instance == null)
        {
            m_Instance = new QueryFragmentSimpleDzmb();
        }
        return m_Instance;
    }


    @Override
    public void callback()
    {
        super.callback();
        m_Instance = null;
    }

    @Override
    protected int getLayoutId()
    {
        return R.layout.query_fragment_zhcx;
    }

    @Override
    protected void initView()
    {
        ViewGroup content = m_ContentView.findViewById(R.id.content);
        setTitle(content, "综合查询", this);
    }

    @Override
    public void onClick(View view)
    {
        TestDzmbInterface testInterface = Factory.getInstance().getTestInterface();
        testInterface.startFragment(getFragmentManager(), "111");
    }
}
